package com.etc.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import com.etc.entity.OrderInfo;
import com.etc.entity.ProductInfo;

public interface OrderDetailDao {
	
	/**
	 * 添加商品到小订单中
	 */
	public void addEachProduct(Connection conn,int oid, int pid, int quantity, double total) throws SQLException; 
	/**
	 * 
		 * 方法作用:通过订单号,查看购买的所有商品信息
	 */
	public List<ProductInfo> findProductByOrderId(int oid);
	/**
	 * 下订单
	 */
	public void downOrder(Connection conn,int oid,int uid,double total,String time) throws SQLException;
	/**
	 * 检查订单id是否已经存在
	 */
	public boolean checkOid(Connection conn,int oid);
}
